<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改供货验收货物')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-acceptancegoods-edit" th:object="${sysAcceptancegoods}">
            <input name="acceptanceGoodsId" th:field="*{acceptanceGoodsId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购单位验收合同表ID：</label>
                <div class="col-sm-8">
                    <input name="acceptanceContractId" th:field="*{acceptanceContractId}" class="form-control" type="hidden">
                    <input name="attribute1" th:field="*{attribute1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">品目：</label>
                <div class="col-sm-8">
                    <input name="items" th:field="*{items}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">单价：</label>
                <div class="col-sm-8">
                    <input name="price" th:field="*{price}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数量：</label>
                <div class="col-sm-8">
                    <input name="number" th:field="*{number}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <input name="amount" th:field="*{amount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">质量状况：</label>
                <div class="col-sm-8">
                    <input name="equality" th:field="*{equality}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">型号及参数：</label>
                <div class="col-sm-8">
                    <input name="models" th:field="*{models}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/acceptancegoods";
        $("#form-acceptancegoods-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-acceptancegoods-edit').serialize());
            }
        }
    </script>
</body>
</html>